(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/shop/shoporder_detail" ], {
    "270a": function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("d41e")).default);
        }).call(this, n("543d").createPage);
    },
    5930: function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0, n("e789");
            var o = {
                data: function() {
                    return {
                        winHeight: 400,
                        orderId: 0,
                        ordertid: 0,
                        orderDetail: {},
                        addressDetail: {},
                        latlng: [],
                        grade: 0,
                        grade_remarks: "",
                        isRes: !1,
                        refundPrice: 0,
                        maxrefundPrice: 0,
                        refundReason: "",
                        isRefund: 0,
                        graceFullLoading: !0,
                        goodsSelectList: [],
                        finishBtn: 1,
                        iskefu: 2,
                        bgColor: "",
                        textColor: "",
                        isRefundBtn: !1,
                        orderColor: [],
                        shop: {},
                        showBack: !1
                    };
                },
                onLoad: function(e) {
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, this.orderId = e.oid, this.detailData();
                },
                onShow: function() {
                    var t = this;
                    e.$once("selectDateTime", function(e) {
                        t.orderDetail.mydate = e.orderDate + " " + e.orderTime;
                    });
                },
                methods: {
                    refundCancel: function() {
                        var t = this;
                        this.isRefundBtn = !0, e.showModal({
                            title: "提示",
                            content: "确认取消退款吗?",
                            success: function(n) {
                                if (n.confirm) {
                                    e.showLoading({
                                        title: "取消中",
                                        mask: !0
                                    });
                                    var o = t.$xSign.sign("u8creditrefund");
                                    t.$xRequest.request({
                                        url: "entry/wxapp/u8creditrefund",
                                        data: {
                                            xgsign: o,
                                            oid: t.orderId,
                                            op: "refundCancel"
                                        },
                                        success: function(n) {
                                            e.hideLoading(), e.showToast({
                                                title: "已取消退款申请",
                                                icon: "none"
                                            }), setTimeout(function() {
                                                t.isRefundBtn = !1, t.detailData();
                                            }, 800);
                                        },
                                        fail: function(n) {
                                            e.hideLoading(), e.showToast({
                                                title: n.data.message,
                                                icon: "none"
                                            }), setTimeout(function() {
                                                t.isRefundBtn = !1, t.detailData();
                                            }, 800);
                                        },
                                        complete: function(t) {
                                            e.setStorageSync("shopOrderStatus", 1);
                                        }
                                    });
                                } else n.cancel && (console.log("用户点击取消"), t.isRefundBtn = !1);
                            }
                        });
                    },
                    refundPay: function() {
                        var t = this;
                        this.isRefundBtn = !0, e.showModal({
                            title: "提示",
                            content: "确认申请退款吗?",
                            success: function(n) {
                                if (n.confirm) {
                                    e.showLoading({
                                        title: "提交中",
                                        mask: !0
                                    });
                                    var o = t.$xSign.sign("u8creditrefund");
                                    t.$xRequest.request({
                                        url: "entry/wxapp/u8creditrefund",
                                        data: {
                                            xgsign: o,
                                            oid: t.orderId,
                                            op: "refund"
                                        },
                                        success: function(n) {
                                            JSON.parse(t.$Decrypt(n.data.data)), e.hideLoading(), e.showToast({
                                                title: "提交成功,等待审核",
                                                icon: "none"
                                            }), setTimeout(function() {
                                                t.isRefundBtn = !1, t.detailData();
                                            }, 800);
                                        },
                                        fail: function(n) {
                                            e.hideLoading(), e.showToast({
                                                title: n.data.message,
                                                icon: "none"
                                            }), setTimeout(function() {
                                                t.isRefundBtn = !1, t.detailData();
                                            }, 800);
                                        },
                                        complete: function(t) {
                                            e.setStorageSync("shopOrderStatus", 1);
                                        }
                                    });
                                } else n.cancel && (t.isRefundBtn = !1, console.log("用户点击取消"));
                            }
                        });
                    },
                    toUrl: function() {
                        wx.navigateToMiniProgram({
                            appId: "wx6885acbedba59c14",
                            path: "pages/result/result?nu=" + this.orderDetail.tranid + "&com=&querysource=third_xcx",
                            fail: function(t) {
                                e.showToast({
                                    title: "无法打开小程序",
                                    mark: !0,
                                    icon: "none",
                                    duration: 1200
                                });
                            }
                        });
                    },
                    showImgs: function(t) {
                        e.previewImage({
                            urls: t
                        });
                    },
                    detailData: function() {
                        var t = this;
                        this.graceFullLoading = !0;
                        var n = this.$xSign.sign("u8creditorderdetail");
                        this.$xRequest.request({
                            url: "entry/wxapp/u8creditorderdetail",
                            data: {
                                oid: this.orderId,
                                op: "detail",
                                xgsign: n
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                t.graceFullLoading = !1, t.goodsSelectList = n.goodslist, t.orderDetail = n.order, 
                                t.ordertid = n.order.ordertid.substring(4), t.addressDetail = n.addressDetail, t.iskefu = n.iskefu, 
                                t.bgColor = n.bgColor, t.textColor = n.textColor, t.orderColor = n.orderColor, t.shop = n.shopinfo;
                            },
                            fail: function(t) {
                                e.showToast({
                                    title: t.data.message,
                                    icon: "none",
                                    mask: !0,
                                    success: function() {
                                        e.setStorageSync("shopOrderStatus", 1), setTimeout(function() {
                                            e.navigateBack({
                                                delta: 1
                                            });
                                        }, 1800);
                                    }
                                });
                            }
                        });
                    },
                    dateToStr: function(e) {
                        var t = 1e3 * parseInt(e), n = new Date(t);
                        return n.getUTCFullYear() + "-" + (n.getUTCMonth() + 1) + "-" + n.getUTCDate() + " " + n.getHours() + ":" + n.getMinutes() + ":" + n.getSeconds();
                    },
                    makePhoneCall: function() {
                        e.makePhoneCall({
                            phoneNumber: this.addressDetail.mobile
                        });
                    },
                    copyId: function(t) {
                        e.setClipboardData({
                            data: t,
                            success: function() {
                                console.log("success");
                            }
                        });
                    },
                    getMap: function() {
                        var t = this.shop.lnglat.split(",");
                        "" == t[0] ? e.showModal({
                            title: "温馨提示",
                            content: "地址错误，请联系客服",
                            showCancel: !1,
                            success: function(t) {
                                t.confirm && e.navigateBack({
                                    delta: 1
                                });
                            }
                        }) : e.openLocation({
                            latitude: Number(t[1]),
                            longitude: Number(t[0]),
                            success: function() {
                                console.log("success");
                            }
                        });
                    }
                },
                computed: {
                    styleHeight: function() {
                        var t = this.$systemInfo.info(), n = t.windowHeight - t.iPhoneXBottomHeightPx - t.statusBarHeight - 45 - e.upx2px(100);
                        return "height:".concat(n, "px;");
                    }
                }
            };
            t.default = o;
        }).call(this, n("543d").default);
    },
    a1dd: function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return i;
        }), n.d(t, "c", function() {
            return a;
        }), n.d(t, "a", function() {
            return o;
        });
        var o = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            }
        }, i = function() {
            var e = this, t = (e.$createElement, e._self._c, e.orderDetail.paytime > 0 ? e.dateToStr(e.orderDetail.paytime) : null), n = e.orderDetail.dispatchtime > 0 ? e.dateToStr(e.orderDetail.dispatchtime) : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    m0: t,
                    m1: n
                }
            });
        }, a = [];
    },
    b62b: function(e, t, n) {
        "use strict";
        n.r(t);
        var o = n("5930"), i = n.n(o);
        for (var a in o) "default" !== a && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(a);
        t.default = i.a;
    },
    d089: function(e, t, n) {},
    d41e: function(e, t, n) {
        "use strict";
        n.r(t);
        var o = n("a1dd"), i = n("b62b");
        for (var a in i) "default" !== a && function(e) {
            n.d(t, e, function() {
                return i[e];
            });
        }(a);
        n("ec13");
        var r = n("f0c5"), s = Object(r.a)(i.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = s.exports;
    },
    ec13: function(e, t, n) {
        "use strict";
        var o = n("d089");
        n.n(o).a;
    }
}, [ [ "270a", "common/runtime", "common/vendor" ] ] ]);